from rest_framework import serializers
from .models import User, Role, Coach, Order


class UserSer(serializers.ModelSerializer):
    class Meta:
        model = User
        fields = '__all__'


class RoleSer(serializers.ModelSerializer):
    class Meta:
        model = Role
        fields = '__all__'


class ShowCoachSer(serializers.ModelSerializer):
    class Meta:
        depth = 1
        model = Coach
        fields = '__all__'


class CoachSer(serializers.ModelSerializer):
    class Meta:
        # depth = 1
        model = Coach
        fields = '__all__'


class OrderSer(serializers.ModelSerializer):
    class Meta:
        # depth = 1
        model = Order
        fields = '__all__'


class OrderListSer(serializers.ModelSerializer):
    class Meta:
        depth = 1
        model = Order
        fields = '__all__'
